# coding = utf-8
import logging

logging.basicConfig(level=logging.DEBUG,
                    format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s',
                    datefmt='%a, %d %b %Y %H:%M:%S',
                    filename='/data/logs/python/python.log',
                    filemode='w')


def info(infomsg):
    logging.info(infomsg)


def error(infomsg):
    logging.error(infomsg)


def debug(infomsg):
    logging.debug(infomsg)
